/*
 *  sendOutput.h
 *  Ball and Plate
 *
 *  Created by Kenn Sebesta on 2008-01-23.
 *  Copyright 2007 __MyCompanyName__. All rights reserved.
 *
 */

#ifndef SENDOUTPUT
#define SENDOUTPUT


#include "openCVincludes.h"

#ifdef SERIAL
    #include <stdio.h>   /* Standard input/output definitions */
    #include <string.h>  /* String function definitions */
    #include <unistd.h>  /* UNIX standard function definitions */
    #include <fcntl.h>   /* File control definitions */
    #include <errno.h>   /* Error number definitions */
    #include <termios.h> /* POSIX terminal control definitions */
#elif defined (LIBSERIAL)
    #include <SerialStream.h>
    using namespace LibSerial;
    #define MAX_MSG_LENTGH 200     // Max number of chars in serial message
#endif

typedef struct TranslatedOutput{
    union{
        char*  ch;
        float fl[3];
    };
    
};

typedef struct TableCalibration{
    CvMat* lut;
};

int openPort(  );
void closePort( int );
void sendOutput( int, CvMat * );

#endif
